////
//add onload_function

// @sample		addLoadEvent(function)
// @param	function		add function

function addLoadEvent(func) {
	var oldonload = window.onload;
	if(typeof window.onload != 'function'){
		window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func();
		};
	}


} 